B = Buffer
C = Calculation functions
The BC10InitBuf function executes the initialization of a ring buffer.
The function requires that you pass the name of the array that serves as a ring buffer and returns a value to the variable ErrCode in case there is an error.
BC10InitBuf (Buffer, ErrCode L)
Parameters:
| IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
|---|---|---|---|---|
| IN | ARRSYS | Buffer | B/W/L/S | Array containing the Buffer |
| OUT | GLOBAL | ErrCode | F | Error Flag (see below) |
ErrCode variable
0 = No error
1 = Array dimension less than 3 elements
INIZ:
BC10InitBuf (Buffer, ErrCode)
MAIN:
WAIT 1
JUMP MAIN
END